feat: design doc for kona prestate native build#372
Open
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4 tasks
ajsutton
added a commit
to ethereum-optimism/optimism
that referenced
this pull request
Apr 23, 2026
… paths Extract kona prestate build logic from Docker multi-stage builds into `just` targets in `rust/justfile`, enabling native (non-Docker) prestate builds for local development while preserving reproducible Docker builds for releases. - `cd rust && just build-kona-prestates` — native build on Linux with MIPS64 cross-toolchain installed - `just reproducible-prestate-kona` — Docker build, produces identical hashes - Dockerfile becomes a thin environment wrapper using mise for tool versions; cannon binary built as an in-Dockerfile stage - `lint-cannon` and `build-cannon-client` use the reproducible build Docker environment via `just` targets - Design doc: ethereum-optimism/design-docs#372 Stacked on #20253 (cannon-builder apt-only refactor). The stopgap in cannon-repro.dockerfile rebuilds the cannon-builder base image inline; once cannon-builder:v2.0.0 is published post-#20253 merge, that stage collapses to `FROM cannon-builder:v2.0.0 AS kona-build-env`.
ajsutton
added a commit
to ethereum-optimism/optimism
that referenced
this pull request
Apr 23, 2026
… paths Extract kona prestate build logic from Docker multi-stage builds into `just` targets in `rust/justfile`, enabling native (non-Docker) prestate builds for local development while preserving reproducible Docker builds for releases. - `cd rust && just build-kona-prestates` — native build on Linux with MIPS64 cross-toolchain installed - `just reproducible-prestate-kona` — Docker build, produces identical hashes - Dockerfile becomes a thin environment wrapper using mise for tool versions; cannon binary built as an in-Dockerfile stage - `lint-cannon` and `build-cannon-client` use the reproducible build Docker environment via `just` targets - Design doc: ethereum-optimism/design-docs#372 Stacked on #20253 (cannon-builder apt-only refactor). The stopgap in cannon-repro.dockerfile rebuilds the cannon-builder base image inline; once cannon-builder:v2.0.0 is published post-#20253 merge, that stage collapses to `FROM cannon-builder:v2.0.0 AS kona-build-env`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
justtargets inrust/justfilecannon-builderDocker image to apt packages only; tools installed viamisefrom sharedmise.tomlop-program/Dockerfile.repro+op-program/repro.justfileTest plan
🤖 Generated with Claude Code